projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c26432
)
xm: Fix long options of xm sched-credit
author
Keir Fraser
<keir@xensource.com>
Thu, 8 Nov 2007 10:23:22 +0000
(10:23 +0000)
committer
Keir Fraser
<keir@xensource.com>
Thu, 8 Nov 2007 10:23:22 +0000
(10:23 +0000)
Long options of xm sched-credit command are ignored (--domain,
--weight, --cap). This patch fixes it.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/main.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xm/main.py
b/tools/python/xen/xm/main.py
index 929f7c1c1eded4b5caee48c06b7c9f3ae1af77d9..5528395e03e11b43234eb8445a85ef937b5ae983 100644
(file)
--- a/
tools/python/xen/xm/main.py
+++ b/
tools/python/xen/xm/main.py
@@
-1529,11
+1529,11
@@
def xm_sched_credit(args):
cap = None
for o, a in opts:
- if o
== "-d"
:
+ if o
in ["-d", "--domain"]
:
domid = a
- elif o
== "-w"
:
+ elif o
in ["-w", "--weight"]
:
weight = int(a)
- elif o
== "-c"
:
+ elif o
in ["-c", "--cap"]
:
cap = int(a);
doms = filter(lambda x : domid_match(domid, x),